//
// Copyright © 2021 dev. All rights reserved.
// 

import Foundation


class WWDCTableView: NSTableView {
    override func menu(for event: NSEvent) -> NSMenu? {
        let windowLocation = event.locationInWindow
        let tableLocation = convert(windowLocation, from: nil)
        let clickedRow = row(at: tableLocation)
        if clickedRow >= 0, let rowView = rowView(atRow: clickedRow, makeIfNecessary: false), rowView.isGroupRowStyle {
            return nil
        }
        return super.menu(for: event)

    }
}
